from django.urls import path
from . import views

urlpatterns = [

    path('status/', views.SystemStatusApiView.as_view()),

    path('manage/', views.CustomerListApiView.as_view()),
    path('manage/batch/', views.CustomerDeleteApiView.as_view()),

    path('manage/<int:id>/', views.CustomerDetailApiView.as_view()),

    path('manage/import/', views.ImportApiView.as_view()),
]

# 给URL添加api，json后缀
from rest_framework.urlpatterns import format_suffix_patterns
urlpatterns = format_suffix_patterns(urlpatterns, allowed=['json', 'api'])